package com.appoint.buss.service.impl;

import com.appoint.buss.domain.EpiparaAtacInfo;
import com.appoint.buss.mapper.EpiparaAtacInfoMapper;
import com.appoint.buss.service.IEpiparaAtacInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AtacInfoService业务层处理
 *
 * @author appoint
 * @date 2023-02-18
 */
@Service
public class EpiparaAtacInfoServiceImpl implements IEpiparaAtacInfoService
{
    @Autowired
    private EpiparaAtacInfoMapper epiparaAtacInfoMapper;

    /**
     * 查询AtacInfo
     *
     * @param id AtacInfo主键
     * @return AtacInfo
     */
    @Override
    public EpiparaAtacInfo selectEpiparaAtacInfoById(Long id)
    {
        return epiparaAtacInfoMapper.selectEpiparaAtacInfoById(id);
    }

    /**
     * 查询AtacInfo列表
     *
     * @param epiparaAtacInfo AtacInfo
     * @return AtacInfo
     */
    @Override
    public List<EpiparaAtacInfo> selectEpiparaAtacInfoList(EpiparaAtacInfo epiparaAtacInfo)
    {
        return epiparaAtacInfoMapper.selectEpiparaAtacInfoList(epiparaAtacInfo);
    }

    /**
     * 新增AtacInfo
     *
     * @param epiparaAtacInfo AtacInfo
     * @return 结果
     */
    @Override
    public int insertEpiparaAtacInfo(EpiparaAtacInfo epiparaAtacInfo)
    {
        return epiparaAtacInfoMapper.insertEpiparaAtacInfo(epiparaAtacInfo);
    }

    /**
     * 修改AtacInfo
     *
     * @param epiparaAtacInfo AtacInfo
     * @return 结果
     */
    @Override
    public int updateEpiparaAtacInfo(EpiparaAtacInfo epiparaAtacInfo)
    {
        return epiparaAtacInfoMapper.updateEpiparaAtacInfo(epiparaAtacInfo);
    }

    /**
     * 批量删除AtacInfo
     *
     * @param ids 需要删除的AtacInfo主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaAtacInfoByIds(Long[] ids)
    {
        return epiparaAtacInfoMapper.deleteEpiparaAtacInfoByIds(ids);
    }

    /**
     * 删除AtacInfo信息
     *
     * @param id AtacInfo主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaAtacInfoById(Long id)
    {
        return epiparaAtacInfoMapper.deleteEpiparaAtacInfoById(id);
    }
}
